// 导入vue|vue-router插件
import Vue from 'vue'
import Router from 'vue-router'
// 注册使用vue-router插件
Vue.use(Router)
export const routes = [
    // { path: '/', component: () => import('@/views/Home/Home.vue'), },
    { path: '/', component: () => import('@/views/LayOut.vue'), },
]
const createRouter = () => new Router({
    // mode: 'history', // require service support
    routes,
    scrollBehavior: () => ({ y: 0 }),

})
const router = createRouter()
export default router
